package com.example.myapplication.customizeView;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.myapplication.R;
import com.example.myapplication.customizeView.keypad.KeypadView;
import com.example.myapplication.customizeView.loginpage.LoginKeyboard;

public class MainActivity extends AppCompatActivity {
    private static final String TAG = "MainActivity";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
       KeypadView keypadView = this.findViewById(R.id.keypad_view);
       keypadView.setOnKeyItemClickListener(new KeypadView.OnKeyItemClickListener() {
           @Override
           public void OnNumberClick(int value) {
               Log.d(TAG,"click number--==>"+value);
           }

           @Override
           public void OnDeleteClick() {
               Log.d(TAG,"点击了删除按钮");

           }
       });


    }
//    public void onLoginPage(View view){
//        Intent intent = new Intent(this,LoginActivity.class);
//        startActivity(intent);
//
//    }

}
